package pojo;


import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;


@Data
public class ClassCourseM {

    private String id;
    @Max(value = 4,message = "年级最大为4")
    private Integer grade;
    @NotNull(message = "专业")
    private String major;
    @Max(value = 8,message = "年制最大为8")
    private Integer year;
    @Max(value = 2,message = "学期最大为2")
    private Integer term;

    @NotNull(message = "所选课程不能为空")
    private String selectCourse;


}
